<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<meta http-equiv="pragma" content="no-cache" />
	<link rel="stylesheet" href="/css/style.css" type="text/css"/>
	<script type="text/javascript" src="/js/jquery.js"></script>
	<script type="text/javascript" src="/js/util.js"></script>
</head>
<script type="text/javascript">
//////////////////////////////////////////////////////////////////////
////  email = "wenpin.qian@happyelements.com"                     ////
////  team = "Athene"                                             ////
////  warnings = "This is generated page,Do Not Modify!";         ////
////  tips = "Opera & IE not supported|Chrome & Safari sugguested"////
//////////////////////////////////////////////////////////////////////
var SkillStatusstr = window.dialogArguments;
var SkillStatus = null;
if(SkillStatusstr != undefined && SkillStatusstr != "" && SkillStatusstr != "{}") {
		SkillStatus = s2json(SkillStatusstr);
}
$(document).ready(function() {
	if(SkillStatus != undefined) {
	
	$('#statusId').val(SkillStatus.statusId);	
	$('#targetType').val(SkillStatus.targetType);	
	$('#valueType').val(SkillStatus.valueType);	
	$('#value').val(SkillStatus.value);	
	$('#round').val(SkillStatus.round);		
	}
	listselectors();
});
window.returnValue = SkillStatusstr;

function listselectors() {
}

function submitSkillStatus() {
	window.returnValue = json2s({
			
			statusId:xparseInt($('#statusId').val()),			
			targetType:$('#targetType').val(),			
			valueType:$('#valueType').val(),			
			value:xparseInt($('#value').val()),			
			round:xparseInt($('#round').val()),						
	});
	beforeWindowClose();
	window.close();
}

function beforeWindowClose() {
	if(window.returnCallback) {
		window.returnCallback(window.returnValue);
	}
	window.onbeforeunload = null;
	return true;
}

</script>
<body onunload="beforeWindowClose()">
	<div class="addarea">
	<table>
		<tbody>			
				<tr>				<td>
					<label for="statusId">状态ID</label>
					
						<input type="text" id="statusId" name="statusId" />
									</td>
							
								<td>
					<label for="targetType">目标类型</label>
																	<select id="targetType" name="targetType">
							
								<option value="0">未选择</option>
							
								<option value="1">敌方随机单个目标</option>
							
								<option value="2">敌方全体目标</option>
							
								<option value="3">自己</option>
							
								<option value="4">己方随机单个目标</option>
							
								<option value="5">己方全体目标</option>
							
								<option value="6">随机单个目标</option>
							
								<option value="7">全体目标</option>
							
								<option value="8">攻击者</option>
							
								<option value="9">敌方丁字塔</option>
							
								<option value="10">敌方横向</option>
							
								<option value="11">敌方纵向</option>
							
								<option value="12">自己移动</option>
													</select>
									</td>
				</tr>			
				<tr>				<td>
					<label for="valueType">值类型</label>
																	<select id="valueType" name="valueType">
							
								<option value="0">数值</option>
							
								<option value="1">百分比</option>
													</select>
									</td>
							
								<td>
					<label for="value">值</label>
					
						<input type="text" id="value" name="value" />
									</td>
				</tr>			
				<tr>				<td>
					<label for="round">回合数</label>
					
						<input type="text" id="round" name="round" />
									</td>
									</tbody>
	</table>
	</div>
	<input type="button" onclick="submitSkillStatus()" value="提交"/>
</body>